<?php
namespace Admin\Models\device;

use Admin\Models\BaseModel;
class XhsysDevicerepair extends BaseModel
{
    /**
     * @var integer or string
     */
    public $iId;
    public $iStatus;
    public $sHandleProgress;
    public $iUserId;
    public $iSchoolId;
    public $sUserName;
    public $sLogonName;
    public $sModel;
    public $sDeviceNumber;
    public $sImei;
    public $sBrand;
    public $sRepairDate;
    public $iCreateType;
    public $iPurposeType;
    public $sProduct;
    public $iChargeType;
    public $iDestination;
    public $sExpSendCompany;
    public $sExpressSend;
    public $sCheckContent;
    public $iCheckResult;
    public $sCheckReport;
    public $bProjectChange;
    public $sDocument;
    public $sUnRepairReason;
    public $sRepairProjectName;
    public $iRenewal;
    public $sNewMessage;
    public $sNewDeviceNumber;
    public $sNewImei;
    public $iMoney;
    public $iAgreeCharge;
    public $sExpressCharge;
    public $iConfirmCharge;
    public $tCommDate;
    public $sCommContent;
    public $iCommTimes;
    public $tLatestCommDate;
    public $iDelayStatus;
    public $sDisagreeReason;
    public $sRepairContent;
    public $sExpBackDate;
    public $sExpBackCompany;
    public $sExpressReceive;
    public $sRemark;

    /**
     *
     * @var integer
     *
     */
    public $bDelete;

    /**
     *
     * @var string
     *
     */
    public $tCreateDate;

    /**
     *
     * @var integer
     *
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     *
     */
    public $tLastModifyDate;

    /**
     *
     * @var integer
     *
     */
    public $iLastModifyUserId;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        parent::initialize();
        $this->setSource("'XHSys_DeviceRepair'");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHSys_DeviceRepair';
    }

    /**
     *
     * @param null $parameters
     *
     * @return \Phalcon\Mvc\Model\ResultsetInterface | XhsysDevicerepair
     *
     * create by qgz 20180914
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     *
     * @param null $parameters
     *
     * @return \Phalcon\Mvc\Model | XhsysDevicerepair
     *
     * create by qgz 20180914
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }
}
